package com.guodefu.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "spring.cache.redis")
public class CacheConfigProperties {
    private Map<String, String> cacheNames = new HashMap<>();
    private String defaultTtl;

    public Map<String, String> getCacheNames() {
        return cacheNames;
    }

    public void setCacheNames(Map<String, String> cacheNames) {
        this.cacheNames = cacheNames;
    }

    public String getDefaultTtl() {
        return defaultTtl;
    }

    public void setDefaultTtl(String defaultTtl) {
        this.defaultTtl = defaultTtl;
    }
}
